#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
#include <cmath>
using namespace std;

typedef long long int LL;

int main()
{
    LL n;
    double t;
    cin >> n >> t;

    n = pow(2, n);

    LL ret = n * t + 0.5;
    cout << ret << endl;

    return 0;
}